from django import forms


class BlogForm(forms.ModelForm):
    # title = models.CharField(max_length=20)
    # classify = models.TextField(max_length=10)
    # content = models.TextField()
    # cover = models.CharField(max_length=255)
    # date_time = models.DateTimeField()
    title = forms.CharField(required=True,error_messages={'required':"请输入博客标题!"})
    content = forms.CharField(required=True,error_messages={'required':'请输入博客内容!'})